Support parameters in InternalTag#7060
Merged
dstrain115 merged 2 commits intoquantumlib:mainfrom Feb 24, 2025
Merged
Conversation
Collaborator
dstrain115
commented
Feb 12, 2025
- This adds support for parameters in InternalTag.
- This adds support for parameters in InternalTag.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #7060 +/- ##
=======================================
Coverage 98.18% 98.18%
=======================================
Files 1089 1089
Lines 95202 95244 +42
=======================================
+ Hits 93473 93515 +42
Misses 1729 1729 ☔ View full report in Codecov by Sentry. |
pavoljuhas
reviewed
Feb 21, 2025
|
|
||
| kw_dict = {} | ||
| for k, v in msg.internal_tag.tag_args.items(): | ||
| kw_dict[k] = arg_func_langs.arg_from_proto(v, arg_function_language='exp') |
Collaborator
There was a problem hiding this comment.
Should we set arg_function_language also in the to_proto method above at line 71?
Also, let us do the msg.WhichOneof check (L83) first before building kw_dict.
pavoljuhas
approved these changes
Feb 21, 2025
Collaborator
pavoljuhas
left a comment
There was a problem hiding this comment.
LGTM with a minor comment.
BichengYing
pushed a commit
to BichengYing/Cirq
that referenced
this pull request
Jun 20, 2025
* Support parameters in InternalTag - This adds support for parameters in InternalTag. * Address comments.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.